const express = require('express')
const app = express()

const cors = require('cors')
app.use(cors())

const bodyParser = require('body-parser')
// extended---false：数组或字符串 true：任意类型
app.use(bodyParser.urlencoded({extended:false}))
app.use(bodyParser.json())

app.listen('3000',() => {
  console.log('http://127.0.0.1:3000 is running');
})